//顶层模块
module main(
	input			clk_in_27m,
	input			rst_n,
	input		    mSCL,
	inout			mSDA,
  output    [4:0] led
);

wire                        clk_sys_540m;
wire                        clk_sys_10m;

Gowin_rPLL rPLL_I2C (
    .clkout(clk_sys_540m), //output clkout
    .clkoutd(clk_sys_10m),
    .clkin(clk_in_27m) //input clkin
);

I2C_Slave_Device u_I2C_Slave(
	.sys_clk	(clk_sys_10m),
	.rst_n		(rst_n),
	.i2c_scl	(mSCL),
	.i2c_sda	(mSDA),
	.debug_state(led)
);
endmodule 
